﻿using System;
using System.Collections.Generic;

namespace YJKSparseDistance.ModelLayer
{
	internal class BulidingCurvePackerCompare : IEqualityComparer<BulidingCurvePakcer>
	{
		public bool Equals(BulidingCurvePakcer x, BulidingCurvePakcer y)
		{
            return x.IfCanGo == y.IfCanGo && x.IfFreeEnd == y.IfFreeEnd && x.IfCanIntersection == y.IfCanIntersection && (int)x.ThisCurve.Intersect(y.ThisCurve) == 64;
		}

		public int GetHashCode(BulidingCurvePakcer obj)
		{
			return obj.GetHashCode();
		}
	}
}
